import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif
// #ifdef VUE3
import {
  createSSRApp
} from 'vue'
import MescrollBody from '@/uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.vue'
import MescrollMixin from '@/components/mescroll-uni/components/mescroll-uni/mescroll-mixins.js'
import MescrollMoreItemMixin from '@/components/mescroll-uni/components/mescroll-uni/mixins/mescroll-more-item.js'
import mixinNav from '@/common/mixin/mixin.js'
import message from '@/common/js/showMessage.js'
import * as utils from '@/common/js/util.js'
import * as env from '@/config/env.js'
export function createApp() {
  const app = createSSRApp(App)
  app.mixin(mixinNav)
  app.mixin(MescrollMixin)
  app.mixin(MescrollMoreItemMixin)
  app.config.globalProperties.$utils = utils;
  app.config.globalProperties.$message = message;

  app.config.globalProperties.$env = env;
  return {
    app
  }
}
// #endif
